package com.amit.hibernate;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class Chibernateutil {



	static SessionFactory factory=null;
	static
	{
		Configuration cfg=new Configuration();
		cfg=cfg.configure();
		factory=cfg.buildSessionFactory();
	}
	public static SessionFactory getFactory(){
		return factory;
	}
	}
